﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="MenuLeft.ascx.vb" Inherits="FrontEnd_Control_Store_MenuLeft" %>
                    <div class="porlet_leftright">
                    		<div class="bgtitle_category_shop">
                            		<div class="texttitle_category_shop">DANH MỤC SẢN PHẨM</div>
                            </div>
                            <div class="box_category">

                          
        						
								<script type="text/javascript">

								    $(function () {
								        
                                        //open all menu
								        $(".subMenu").each(function () {
								            var id = $(this).attr("id");
								            sdopen(this, id);                                        
                                        });

                                        //handle when click menu
								        $(".imgMenu").click(function () {
								            var id = $(this).parent().parent().find(".subMenu").attr("id");
								            sdopen(this, id);
								        });
								    });								
                                </script>
                            		
                                    <div class="sidebar_left">
                                        <ul>
                                            <asp:Repeater ID="rptMenu" runat="server">
                                            <ItemTemplate>
                                             <li>
                                                     <div style="position: relative;">
                                                            <asp:HyperLink ID="hplTitle" runat="server">Title</asp:HyperLink>
                                                                                                         
                                                            <img src="<%=ResolveUrl("~/FrontEnd/images/icon_arrowex.gif")%>" class="imgMenu" />

                                                     </div>

                                                     <!--menu con--> 
                                                     <ul style="display: none;" id="<%# "sd_" & Container.ItemIndex %>" class="subMenu">
                                                     <asp:Repeater ID="rptMenuChild" runat="server" OnItemDataBound="rptMenuChild_ItemDataBound">
                                                        <ItemTemplate>
                                                                <li><asp:HyperLink ID="hplTitle" runat="server">Title</asp:HyperLink></li>
                                                        </ItemTemplate>
                                                     </asp:Repeater>
                                                       </ul>
                                                     <!--end menu con-->
                                                  
                                             </li>
                                            </ItemTemplate>

                                            </asp:Repeater>
                                   
                                        </ul>
                                
                                    </div>
                            </div>
                            <div class="bgbottom_category_shop">&nbsp;</div>
                    
                    </div>